<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta name="Content-Type" content="text/html; charset=UTF-8" />
<title>Class: Sass::Selector::Sequence</title>
<link rel="stylesheet" href="style.css" tppabs="http://sass-lang.com/docs/yardoc/css/style.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="common.css" tppabs="http://sass-lang.com/docs/yardoc/css/common.css" type="text/css" media="screen" charset="utf-8" />

<script type="text/javascript" charset="utf-8">
  relpath = '../..';
  if (relpath != '') relpath += '/';
</script>
<script type="text/javascript" charset="utf-8" src="jquery.js" tppabs="http://sass-lang.com/docs/yardoc/js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="app.js" tppabs="http://sass-lang.com/docs/yardoc/js/app.js"></script>

  </head>
  <body>
    <script type="text/javascript" charset="utf-8">
      if (window.top.frames.main) document.body.className = 'frames';
    </script>
    
    <div id="header">
      <div id="menu">
  
    <a href="_index.html" tppabs="http://sass-lang.com/docs/yardoc/_index.html">Index (S)</a> &raquo; 
    <span class='title'><a href="Sass-1.html" tppabs="http://sass-lang.com/docs/yardoc/Sass.html" title="Sass (module)">Sass</a></span> &raquo; <span class='title'><a href="Selector.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector.html" title="Sass::Selector (module)">Selector</a></span>
     &raquo; 
    <span class="title">Sequence</span>
  
  
  <div class="noframes"><span class="title">(</span><a href="javascript:if(confirm(%27http://sass-lang.com/docs/yardoc/Sass/Selector/.  \n\nThis file was not retrieved by Teleport Pro, because the server reports that this file cannot be found.  \n\nDo you want to open it from the server?%27))window.location=%27http://sass-lang.com/docs/yardoc/Sass/Selector/.%27" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/." target="_top">no frames</a><span class="title">)</span></div>
</div>

      <div id="search">
  <a id="class_list_link" href="#">Class List</a>
  <a id="method_list_link" href="#">Method List</a>
  <a id ="file_list_link" href="#">File List</a>
</div>

      <div class="clear"></div>
    </div>
    
    <iframe id="search_frame"></iframe>
    
    <div id="content"><h1>Class: Sass::Selector::Sequence 
  
  
</h1>

<dl class="box">
  
    <dt class="r1">Inherits:</dt>
    <dd class="r1">
      <span class="inheritName"><a href="AbstractSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html" title="Sass::Selector::AbstractSequence (class)">AbstractSequence</a></span>
      
        <ul class="fullTree">
          <li>Object</li>
          
            <li class="next"><a href="AbstractSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html" title="Sass::Selector::AbstractSequence (class)">AbstractSequence</a></li>
          
            <li class="next">Sass::Selector::Sequence</li>
          
        </ul>
        <a href="#" class="inheritanceTree">show all</a>
      
      </dd>
    
  
  
    
  
    
  
  
    <dt class="r2 last">Defined in:</dt>
    <dd class="r2 last">/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb</dd>
  
</dl>
<div class="clear"></div>

<h2>Overview</h2><div class="docstring">
  <div class="discussion">
    <p>An operator-separated sequence of <tt><a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">simple selector sequences</a></tt>.</p>

  </div>
</div>
<div class="tags">
  
</div>

  
  
  
  
  <h2>Instance Attribute Summary</h2>
  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#members-instance_method" title="#members (instance method)">- (Array&lt;SimpleSequence, String|Array&lt;Sass::Tree::Node, String&gt;&gt;) <strong>members</strong> </a>
    

    
  </span>
  
  
    <span class="note title readonly">readonly</span>
    
  
  
  
  

  
    <span class="summary_desc">The array of <tt><a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">simple selector sequences</a></tt>, operators, and newlines.</span>
  
</li>

    
  </ul>


  <h2>Instance Method Summary</h2>

  <ul class="summary">
    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#add_sources%21-instance_method" title="#add_sources! (instance method)">- <strong>add_sources!</strong>(sources) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Add to the <tt><a href="SimpleSequence.html#sources-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html#sources-instance_method" title="Sass::Selector::SimpleSequence#sources (method)">SimpleSequence#sources</a></tt> sets of the child simple sequences.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#do_extend-instance_method" title="#do_extend (instance method)">- <strong>do_extend</strong>(extends, parent_directives) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Non-destructively extends this selector with the extensions specified in a hash (which should come from <tt><a href="Cssize.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/Cssize.html" title="Sass::Tree::Visitors::Cssize (class)">Sass::Tree::Visitors::Cssize</a></tt>).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#filename%3D-instance_method" title="#filename= (instance method)">- (String<sup>?</sup>) <strong>filename</strong>(filename) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets the name of the file in which this selector was declared, or <code>nil</code> if it was not declared in a file (e.g. on stdin).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#initialize-instance_method" title="#initialize (instance method)">- (Sequence) <strong>initialize</strong>(seqs_and_ops) </a>
    

    
  </span>
  
    <span class="note title constructor">constructor</span>
  
  
  
  
  

  
    <span class="summary_desc">A new instance of Sequence.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#inspect-instance_method" title="#inspect (instance method)">- (String) <strong>inspect</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns a string representation of the sequence.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#line%3D-instance_method" title="#line= (instance method)">- (Fixnum) <strong>line</strong>(line) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Sets the line of the Sass template on which this selector was declared.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#resolve_parent_refs-instance_method" title="#resolve_parent_refs (instance method)">- (Sequence) <strong>resolve_parent_refs</strong>(super_seq) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Resolves the <tt><a href="Parent.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/Parent.html" title="Sass::Selector::Parent (class)">Parent</a></tt> selectors within this selector by replacing them with the given parent selector, handling commas appropriately.</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#superselector%3F-instance_method" title="#superselector? (instance method)">- (Boolean) <strong>superselector?</strong>(sseq) </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc">Returns whether or not this selector matches all elements that the given selector matches (as well as possibly more).</span>
  
</li>

    
      <li class="public ">
  <span class="summary_signature">
    
      <a href="#to_a-instance_method" title="#to_a (instance method)">- <strong>to_a</strong> </a>
    

    
  </span>
  
  
  
  
  

  
    <span class="summary_desc"></span>
  
</li>

    
  </ul>

  
  
  
  
  
  <h3 class="inherited">Methods inherited from <a href="AbstractSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html" title="Sass::Selector::AbstractSequence (class)">AbstractSequence</a></h3>
  <p class="inherited"><a href="AbstractSequence.html#_specificity-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html#_specificity-instance_method" title="Sass::Selector::AbstractSequence#_specificity (method)">#_specificity</a>, <a href="AbstractSequence.html#eql%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html#eql%3F-instance_method" title="Sass::Selector::AbstractSequence#eql? (method)">#eql?</a>, <a href="AbstractSequence.html#has_placeholder%3F-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html#has_placeholder%3F-instance_method" title="Sass::Selector::AbstractSequence#has_placeholder? (method)">#has_placeholder?</a>, <a href="AbstractSequence.html#hash-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html#hash-instance_method" title="Sass::Selector::AbstractSequence#hash (method)">#hash</a>, <a href="AbstractSequence.html#specificity-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html#specificity-instance_method" title="Sass::Selector::AbstractSequence#specificity (method)">#specificity</a>, <a href="AbstractSequence.html#to_s-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/AbstractSequence.html#to_s-instance_method" title="Sass::Selector::AbstractSequence#to_s (method)">#to_s</a></p>
<div id="constructor_details" class="method_details_list">
  <h2>Constructor Details</h2>
  
    <div class="method_details first">
  <p class="signature first" id="initialize-instance_method">
  
    - (<tt><a href="" title="Sass::Selector::Sequence (class)">Sequence</a></tt>) <strong>initialize</strong>(seqs_and_ops) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>A new instance of Sequence</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a>, String|Array&lt;<a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Sass::Tree::Node</a>, String&gt;&gt;</tt>)</span>
      
      
        <span class='name'>seqs_and_ops</span>
      
      
      
        &mdash;
        See <tt><a href="#members-instance_method" title="Sass::Selector::Sequence#members (method)">#members</a></tt>
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


37
38
39</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 37</span>

def initialize(seqs_and_ops)
  @members = seqs_and_ops
end</pre>
    </td>
  </tr>
</table>
</div>
  
</div>

  <div id="instance_attr_details" class="attr_details">
    <h2>Instance Attribute Details</h2>
    
      
      <span id=""></span>
      <span id="members-instance_method"></span>
      <div class="method_details first">
  <p class="signature first" id="members-instance_method">
  
    - (<tt>Array&lt;<a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a>, String|Array&lt;<a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Sass::Tree::Node</a>, String&gt;&gt;</tt>) <strong>members</strong>  <span class="extras">(readonly)</span>
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>The array of <tt><a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">simple selector sequences</a></tt>, operators, and newlines. The operators are strings such as <code>&quot;+&quot;</code> and <code>&quot;&gt;&quot;</code> representing the corresponding CSS operators, or interpolated SassScript. Newlines are also newline strings; these aren&#8217;t semantically relevant, but they do affect formatting.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a>, String|Array&lt;<a href="Node.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Node.html" title="Sass::Tree::Node (class)">Sass::Tree::Node</a>, String&gt;&gt;</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


34
35
36</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 34</span>

def members
  @members
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>


  <div id="instance_method_details" class="method_details_list">
    <h2>Instance Method Details</h2>
    
    
      <div class="method_details first">
  <p class="signature first" id="add_sources!-instance_method">
  
    - <strong>add_sources!</strong>(sources) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Add to the <tt><a href="SimpleSequence.html#sources-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html#sources-instance_method" title="Sass::Selector::SimpleSequence#sources (method)">SimpleSequence#sources</a></tt> sets of the child simple sequences. This destructively modifies this sequence&#8217;s members array, but not the child simple sequences.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Set&lt;<a href="" title="Sass::Selector::Sequence (class)">Sequence</a>&gt;</tt>)</span>
      
      
        <span class='name'>sources</span>
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


125
126
127</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 125</span>

def add_sources!(sources)
  members.map! {|m| m.is_a?(SimpleSequence) ? m.with_more_sources(sources) : m}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="do_extend-instance_method">
  
    - <strong>do_extend</strong>(extends, parent_directives) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Non-destructively extends this selector with the extensions specified in a hash (which should come from <tt><a href="Cssize.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/Cssize.html" title="Sass::Tree::Visitors::Cssize (class)">Sass::Tree::Visitors::Cssize</a></tt>).</p>

  </div>
</div>
<div class="tags">
  
  
<h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="SubsetMap.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Util/SubsetMap.html" title="Sass::Util::SubsetMap (class)">Sass::Util::SubsetMap</a>{<a href="Simple.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/Simple.html" title="Sass::Selector::Simple (class)">Selector::Simple</a> =&gt; <a href="Extend.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/Visitors/Cssize/Extend.html" title="Sass::Tree::Visitors::Cssize::Extend (class)">Sass::Tree::Visitors::Cssize::Extend</a>}</tt>)</span>
      
      
        <span class='name'>extends</span>
      
      
      
        &mdash;
        The extensions to perform on this selector
      
    </li>
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="DirectiveNode.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Tree/DirectiveNode.html" title="Sass::Tree::DirectiveNode (class)">Sass::Tree::DirectiveNode</a>&gt;</tt>)</span>
      
      
        <span class='name'>parent_directives</span>
      
      
      
        &mdash;
        The directives containing this selector.
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Array&lt;<a href="" title="Sass::Selector::Sequence (class)">Sequence</a>&gt;</tt>)</span>
      
      
      
      
        &mdash;
        A list of selectors generated by extending this selector with <code>extends</code>. These correspond to a <tt><a href="CommaSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html" title="Sass::Selector::CommaSequence (class)">CommaSequence</a></tt>&#8217;s <tt><a href="CommaSequence.html#members-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html#members-instance_method" title="Sass::Selector::CommaSequence#members (method)">members array</a></tt>.
      
    </li>
  
</ul>

  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="CommaSequence.html#do_extend-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/CommaSequence.html#do_extend-instance_method" title="Sass::Selector::CommaSequence#do_extend (method)">CommaSequence#do_extend</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


80
81
82
83
84
85
86
87
88
89
90</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 80</span>

def do_extend(extends, parent_directives, seen = Set.new)
  extended_not_expanded = members.map do |sseq_or_op|
    next [[sseq_or_op]] unless sseq_or_op.is_a?(SimpleSequence)
    extended = sseq_or_op.do_extend(extends, parent_directives, seen)
    choices = extended.map {|seq| seq.members}
    choices.unshift([sseq_or_op]) unless extended.any? {|seq| seq.superselector?(sseq_or_op)}
    choices
  end
  weaves = Sass::Util.paths(extended_not_expanded).map {|path| weave(path)}
  Sass::Util.flatten(trim(weaves), 1).map {|p| Sequence.new(p)}
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="filename=-instance_method">
  
    - (<tt>String</tt><sup>?</sup>) <strong>filename=</strong>(filename) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets the name of the file in which this selector was declared, or <code>nil</code> if it was not declared in a file (e.g. on stdin). This also sets the filename for all child selectors.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
      
      
        <span class='name'>filename</span>
      
      
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>, <tt>nil</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


22
23
24
25</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 22</span>

def filename=(filename)
  members.each {|m| m.filename = filename if m.is_a?(SimpleSequence)}
  filename
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="inspect-instance_method">
  
    - (<tt>String</tt>) <strong>inspect</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns a string representation of the sequence. This is basically the selector string.</p>

  </div>
</div>
<div class="tags">
  <h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>String</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


116
117
118</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 116</span>

def inspect
  members.map {|m| m.inspect}.join(" ")
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="line=-instance_method">
  
    - (<tt>Fixnum</tt>) <strong>line=</strong>(line) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Sets the line of the Sass template on which this selector was declared. This also sets the line for all child selectors.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
        <span class='name'>line</span>
      
      
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Fixnum</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


11
12
13
14</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 11</span>

def line=(line)
  members.each {|m| m.line = line if m.is_a?(SimpleSequence)}
  line
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="resolve_parent_refs-instance_method">
  
    - (<tt><a href="" title="Sass::Selector::Sequence (class)">Sequence</a></tt>) <strong>resolve_parent_refs</strong>(super_seq) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Resolves the <tt><a href="Parent.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/Parent.html" title="Sass::Selector::Parent (class)">Parent</a></tt> selectors within this selector by replacing them with the given parent selector, handling commas appropriately.</p>

  </div>
</div>
<div class="tags">
  <h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Selector::Sequence (class)">Sequence</a></tt>)</span>
      
      
        <span class='name'>super_seq</span>
      
      
      
        &mdash;
        The parent selector sequence
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt><a href="" title="Sass::Selector::Sequence (class)">Sequence</a></tt>)</span>
      
      
      
      
        &mdash;
        This selector, with parent references resolved
      
    </li>
  
</ul>
<h3>Raises:</h3>
<ul class="raise">
  
    <li>
      
        <span class='type'>(<tt><a href="SyntaxError.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/SyntaxError.html" title="Sass::SyntaxError (class)">Sass::SyntaxError</a></tt>)</span>
      
      
      
      
        &mdash;
        If a parent selector is invalid
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 48</span>

def resolve_parent_refs(super_seq)
  members = @members.dup
  nl = (members.first == "\n" && members.shift)
  unless members.any? do |seq_or_op|
      seq_or_op.is_a?(SimpleSequence) && seq_or_op.members.first.is_a?(Parent)
    end
    old_members, members = members, []
    members << nl if nl
    members << SimpleSequence.new([Parent.new], false)
    members += old_members
  end

  Sequence.new(
    members.map do |seq_or_op|
      next seq_or_op unless seq_or_op.is_a?(SimpleSequence)
      seq_or_op.resolve_parent_refs(super_seq)
    end.flatten)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="superselector?-instance_method">
  
    - (<tt>Boolean</tt>) <strong>superselector?</strong>(sseq) 
  

  
</p><div class="docstring">
  <div class="discussion">
    <p>Returns whether or not this selector matches all elements that the given selector matches (as well as possibly more).</p>

  </div>
</div>
<div class="tags">
  
  <div class="examples">
    <h3>Examples:</h3>
    
      <h4></h4>
      <pre class="example code">  (.foo).superselector?(.foo.bar) #=> true
  (.foo).superselector?(.bar) #=> false
  (.bar .foo).superselector?(.foo) #=> false</pre>
    
  </div>
<h3>Parameters:</h3>
<ul class="param">
  
    <li>
      
        <span class='type'>(<tt><a href="SimpleSequence.html" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/SimpleSequence.html" title="Sass::Selector::SimpleSequence (class)">SimpleSequence</a></tt>)</span>
      
      
        <span class='name'>sseq</span>
      
      
      
    </li>
  
</ul>
<h3>Returns:</h3>
<ul class="return">
  
    <li>
      
        <span class='type'>(<tt>Boolean</tt>)</span>
      
      
      
      
    </li>
  
</ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


101
102
103
104</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 101</span>

def superselector?(sseq)
  return false unless members.size == 1
  members.last.superselector?(sseq)
end</pre>
    </td>
  </tr>
</table>
</div>
    
      <div class="method_details ">
  <p class="signature " id="to_a-instance_method">
  
    - <strong>to_a</strong> 
  

  
</p><div class="docstring">
  <div class="discussion">
    

  </div>
</div>
<div class="tags">
  
  <h3>See Also:</h3>
  <ul class="see">
    
      <li><a href="Simple.html#to_a-instance_method" tppabs="http://sass-lang.com/docs/yardoc/Sass/Selector/Simple.html#to_a-instance_method" title="Sass::Selector::Simple#to_a (method)">Simple#to_a</a></li>
    
  </ul>

</div><table class="source_code">
  <tr>
    <td>
      <pre class="lines">


107
108
109
110</pre>
    </td>
    <td>
      <pre class="code"><span class="info file"># File '/var/www/sass-pages/.sass/lib/sass/selector/sequence.rb', line 107</span>

def to_a
  ary = @members.map {|seq_or_op| seq_or_op.is_a?(SimpleSequence) ? seq_or_op.to_a : seq_or_op}
  Sass::Util.intersperse(ary, " ").flatten.compact
end</pre>
    </td>
  </tr>
</table>
</div>
    
  </div>

</div>
    
    <div id="footer">
  Generated on Fri Mar  8 20:34:00 2013 by 
  <a href="javascript:if(confirm(%27http://yardoc.org/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://yardoc.org/%27" tppabs="http://yardoc.org/" title="Yay! A Ruby Documentation Tool">yard</a>
  0.5.3 (ruby-1.8.7).
</div>


  <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  </script>
  <script type="text/javascript">
  try {
  var pageTracker = _gat._getTracker("UA-535380-8");
  pageTracker._trackPageview();
  } catch(err) {}</script>


  </body>
</html>